package com.cory.module.oplog.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cory.module.oplog.domain.entity.Oplog;

/**
 *  Mapper 接口
 *
 * @author xc
 * @since 2022-01-10
 */
public interface OplogMapper extends BaseMapper<Oplog> {

    @Select("select ${tableDate} from ${table} where ${tableId} = #{objectId}")
    String getObjectData(@Param("table")String table, @Param("tableId")String tableId, @Param("objectId")String objectId, @Param("tableDate")String tableDate);
}
